package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.Role;
import com.zzyl.vo.RoleVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMapper {
    Page<Role> getPage(String roleName);

    void addRole(Role role);

    List<String> findCheckedResources(Long roleId);

    Role selectRoleById(Long roleId);

    void updateRole(Role role);

    void deleteById(Long roleId);

    List<RoleVo> selectAllRole();

}
